package xin.marcher.module.trace.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xin.marcher.module.common.core.PageResult;
import xin.marcher.module.trace.domain.dto.TraceDataDTO;
import xin.marcher.module.trace.domain.request.QueryTraceDataPageRequest;
import xin.marcher.module.trace.repository.TraceDataRepository;
import xin.marcher.module.trace.service.TraceDataService;

import java.io.IOException;

/**
 *
 */
@Service
public class TraceDataServiceImpl implements TraceDataService {

    @Autowired
    private TraceDataRepository traceDataRepository;

    /**
     * 查询数据溯源
     *
     * @param request
     */
    @Override
    public PageResult<TraceDataDTO> listTraceDataPage(QueryTraceDataPageRequest request) throws IOException {
        return traceDataRepository.listTraceDataPage(request);
    }
}
